package com.cskaoyan.user.controller;

import com.cskaoyan.mall.commons.result.ResponseData;
import com.cskaoyan.mall.commons.result.ResponseUtil;
import com.cskaoyan.user.dal.entitys.UserVerify;
import com.cskaoyan.user.dto.UserVerifyInfoDto;
import com.cskaoyan.user.dto.UserVerifyResponse;
import com.cskaoyan.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author：HeXiangZhi
 * @data: 2022/12/4 15:31
 * @Description: TODO
 */
@RestController
public class UserVerifyController {

   @Autowired
   UserService userService;

   @GetMapping("/user/verify/info/{uid}")
   public ResponseData userVerifyInfo(@PathVariable("uid") Long userId){
       UserVerifyInfoDto userVerifyResponse = userService.getUserVerifyInfo(userId);
       return new ResponseUtil().setData(userVerifyResponse);
   }

}
